<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MyPetstore</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen"/>

</head>
<body>
<div th:replace="common/top"></div>

<div id="Catalog">
    <form action="/account/editAccount" th:object="${account}">

        <h3>User Information</h3>

        <table id="accountform">
            <tr>
                <td>User ID:</td>
                <td th:text="${account.username}">account username</td>
            </tr>
            <tr>
                <td>New password:</td>
                <td><input type="password" name="password"/></td>
            </tr>
            <tr>
                <td>Repeat password:</td>
                <td><input type="password" name="repeatedPassword"/></td>
            </tr>
        </table>

        <div th:replace="account/includeAccountFields.html::fields">

        </div>

        <input type="submit" name="editAccount" value="Save Account Information"/>

    </form>
    <a href="/order/listOrders">My Orders</a>
</div>

<div th:replace="common/bottom">

</div>
</body>
</html>